\(\int \frac {(c+d \sin (e+f x))^5}{(3+3 \sin (e+f x))^2} \, dx\) [461]

   Optimal result
   Rubi [A] (verified)
   Mathematica [B] (verified)
   Maple [A] (verified)
   Fricas [B] (verification not implemented)
   Sympy [B] (verification not implemented)
   Maxima [B] (verification not implemented)
   Giac [B] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 25, antiderivative size = 245 \[ \int \frac {(c+d \sin (e+f x))^5}{(3+3 \sin (e+f x))^2} \, dx=\frac {5}{18} (2 c-d) d^2 \left (2 c^2-3 c d+2 d^2\right ) x+\frac {2 d \left (c^4+10 c^3 d-44 c^2 d^2+40 c d^3-12 d^4\right ) \cos (e+f x)}{27 f}+\frac {d^2 \left (2 c^3+20 c^2 d-57 c d^2+30 d^3\right ) \cos (e+f x) \sin (e+f x)}{54 f}+\frac {d \left (c^2+10 c d-12 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^2}{27 f}-\frac {(c-d) (c+10 d) \cos (e+f x) (c+d \sin (e+f x))^3}{27 f (1+\sin (e+f x))}-\frac {(c-d) \cos (e+f x) (c+d \sin (e+f x))^4}{3 f (3+3 \sin (e+f x))^2} \]

[Out]

5/2*(2*c-d)*d^2*(2*c^2-3*c*d+2*d^2)*x/a^2+2/3*d*(c^4+10*c^3*d-44*c^2*d^2+40*c*d^3-12*d^4)*cos(f*x+e)/a^2/f+1/6
*d^2*(2*c^3+20*c^2*d-57*c*d^2+30*d^3)*cos(f*x+e)*sin(f*x+e)/a^2/f+1/3*d*(c^2+10*c*d-12*d^2)*cos(f*x+e)*(c+d*si
n(f*x+e))^2/a^2/f-1/3*(c-d)*(c+10*d)*cos(f*x+e)*(c+d*sin(f*x+e))^3/a^2/f/(1+sin(f*x+e))-1/3*(c-d)*cos(f*x+e)*(
c+d*sin(f*x+e))^4/f/(a+a*sin(f*x+e))^2

Rubi [A] (verified)

Time = 0.36 (sec) , antiderivative size = 260, normalized size of antiderivative = 1.06, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {2844, 3056, 2832, 2813} \[ \int \frac {(c+d \sin (e+f x))^5}{(3+3 \sin (e+f x))^2} \, dx=\frac {d \left (c^2+10 c d-12 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^2}{3 a^2 f}+\frac {5 d^2 x (2 c-d) \left (2 c^2-3 c d+2 d^2\right )}{2 a^2}+\frac {d^2 \left (2 c^3+20 c^2 d-57 c d^2+30 d^3\right ) \sin (e+f x) \cos (e+f x)}{6 a^2 f}+\frac {2 d \left (c^4+10 c^3 d-44 c^2 d^2+40 c d^3-12 d^4\right ) \cos (e+f x)}{3 a^2 f}-\frac {(c-d) (c+10 d) \cos (e+f x) (c+d \sin (e+f x))^3}{3 a^2 f (\sin (e+f x)+1)}-\frac {(c-d) \cos (e+f x) (c+d \sin (e+f x))^4}{3 f (a \sin (e+f x)+a)^2} \]

[In]

Int[(c + d*Sin[e + f*x])^5/(a + a*Sin[e + f*x])^2,x]

[Out]

(5*(2*c - d)*d^2*(2*c^2 - 3*c*d + 2*d^2)*x)/(2*a^2) + (2*d*(c^4 + 10*c^3*d - 44*c^2*d^2 + 40*c*d^3 - 12*d^4)*C
os[e + f*x])/(3*a^2*f) + (d^2*(2*c^3 + 20*c^2*d - 57*c*d^2 + 30*d^3)*Cos[e + f*x]*Sin[e + f*x])/(6*a^2*f) + (d
*(c^2 + 10*c*d - 12*d^2)*Cos[e + f*x]*(c + d*Sin[e + f*x])^2)/(3*a^2*f) - ((c - d)*(c + 10*d)*Cos[e + f*x]*(c
+ d*Sin[e + f*x])^3)/(3*a^2*f*(1 + Sin[e + f*x])) - ((c - d)*Cos[e + f*x]*(c + d*Sin[e + f*x])^4)/(3*f*(a + a*
Sin[e + f*x])^2)

Rule 2813

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(2*a*c +
 b*d)*(x/2), x] + (-Simp[(b*c + a*d)*(Cos[e + f*x]/f), x] - Simp[b*d*Cos[e + f*x]*(Sin[e + f*x]/(2*f)), x]) /;
 FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0]

Rule 2832

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(-d
)*Cos[e + f*x]*((a + b*Sin[e + f*x])^m/(f*(m + 1))), x] + Dist[1/(m + 1), Int[(a + b*Sin[e + f*x])^(m - 1)*Sim
p[b*d*m + a*c*(m + 1) + (a*d*m + b*c*(m + 1))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[
b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && GtQ[m, 0] && IntegerQ[2*m]

Rule 2844

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Sim
p[(b*c - a*d)*Cos[e + f*x]*(a + b*Sin[e + f*x])^m*((c + d*Sin[e + f*x])^(n - 1)/(a*f*(2*m + 1))), x] + Dist[1/
(a*b*(2*m + 1)), Int[(a + b*Sin[e + f*x])^(m + 1)*(c + d*Sin[e + f*x])^(n - 2)*Simp[b*(c^2*(m + 1) + d^2*(n -
1)) + a*c*d*(m - n + 1) + d*(a*d*(m - n + 1) + b*c*(m + n))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e,
f}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && LtQ[m, -1] && GtQ[n, 1] && (IntegersQ
[2*m, 2*n] || (IntegerQ[m] && EqQ[c, 0]))

Rule 3056

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e_
.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[(A*b - a*B)*Cos[e + f*x]*(a + b*Sin[e + f*x])^m*((c + d*Sin[e + f*x]
)^n/(a*f*(2*m + 1))), x] - Dist[1/(a*b*(2*m + 1)), Int[(a + b*Sin[e + f*x])^(m + 1)*(c + d*Sin[e + f*x])^(n -
1)*Simp[A*(a*d*n - b*c*(m + 1)) - B*(a*c*m + b*d*n) - d*(a*B*(m - n) + A*b*(m + n + 1))*Sin[e + f*x], x], x],
x] /; FreeQ[{a, b, c, d, e, f, A, B}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && LtQ
[m, -2^(-1)] && GtQ[n, 0] && IntegerQ[2*m] && (IntegerQ[2*n] || EqQ[c, 0])

Rubi steps \begin{align*} \text {integral}& = -\frac {(c-d) \cos (e+f x) (c+d \sin (e+f x))^4}{3 f (a+a \sin (e+f x))^2}-\frac {\int \frac {(c+d \sin (e+f x))^3 \left (-a \left (c^2+6 c d-4 d^2\right )+3 a (c-2 d) d \sin (e+f x)\right )}{a+a \sin (e+f x)} \, dx}{3 a^2} \\ & = -\frac {(c-d) (c+10 d) \cos (e+f x) (c+d \sin (e+f x))^3}{3 a^2 f (1+\sin (e+f x))}-\frac {(c-d) \cos (e+f x) (c+d \sin (e+f x))^4}{3 f (a+a \sin (e+f x))^2}-\frac {\int (c+d \sin (e+f x))^2 \left (-3 a^2 (11 c-10 d) d^2+3 a^2 d \left (c^2+10 c d-12 d^2\right ) \sin (e+f x)\right ) \, dx}{3 a^4} \\ & = \frac {d \left (c^2+10 c d-12 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^2}{3 a^2 f}-\frac {(c-d) (c+10 d) \cos (e+f x) (c+d \sin (e+f x))^3}{3 a^2 f (1+\sin (e+f x))}-\frac {(c-d) \cos (e+f x) (c+d \sin (e+f x))^4}{3 f (a+a \sin (e+f x))^2}-\frac {\int (c+d \sin (e+f x)) \left (-3 a^2 d^2 \left (31 c^2-50 c d+24 d^2\right )+3 a^2 d \left (2 c^3+20 c^2 d-57 c d^2+30 d^3\right ) \sin (e+f x)\right ) \, dx}{9 a^4} \\ & = \frac {5 (2 c-d) d^2 \left (2 c^2-3 c d+2 d^2\right ) x}{2 a^2}+\frac {2 d \left (c^4+10 c^3 d-44 c^2 d^2+40 c d^3-12 d^4\right ) \cos (e+f x)}{3 a^2 f}+\frac {d^2 \left (2 c^3+20 c^2 d-57 c d^2+30 d^3\right ) \cos (e+f x) \sin (e+f x)}{6 a^2 f}+\frac {d \left (c^2+10 c d-12 d^2\right ) \cos (e+f x) (c+d \sin (e+f x))^2}{3 a^2 f}-\frac {(c-d) (c+10 d) \cos (e+f x) (c+d \sin (e+f x))^3}{3 a^2 f (1+\sin (e+f x))}-\frac {(c-d) \cos (e+f x) (c+d \sin (e+f x))^4}{3 f (a+a \sin (e+f x))^2} \\ \end{align*}

Mathematica [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(834\) vs. \(2(245)=490\).

Time = 1.25 (sec) , antiderivative size = 834, normalized size of antiderivative = 3.40 \[ \int \frac {(c+d \sin (e+f x))^5}{(3+3 \sin (e+f x))^2} \, dx=\frac {\left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (3 d \left (80 c^4+80 c^3 d (-4+3 e+3 f x)-80 c^2 d^2 (-5+6 e+6 f x)+35 c d^3 (-7+12 e+12 f x)-4 d^4 (-13+30 e+30 f x)\right ) \cos \left (\frac {1}{2} (e+f x)\right )-\left (16 c^5+160 c^4 d+80 c^3 d^2 (-10+3 e+3 f x)-40 c^2 d^3 (-41+12 e+12 f x)-6 d^5 (-57+20 e+20 f x)+5 c d^4 (-239+84 e+84 f x)\right ) \cos \left (\frac {3}{2} (e+f x)\right )+120 c^2 d^3 \cos \left (\frac {5}{2} (e+f x)\right )-75 c d^4 \cos \left (\frac {5}{2} (e+f x)\right )+30 d^5 \cos \left (\frac {5}{2} (e+f x)\right )+15 c d^4 \cos \left (\frac {7}{2} (e+f x)\right )-3 d^5 \cos \left (\frac {7}{2} (e+f x)\right )-d^5 \cos \left (\frac {9}{2} (e+f x)\right )+48 c^5 \sin \left (\frac {1}{2} (e+f x)\right )+240 c^4 d \sin \left (\frac {1}{2} (e+f x)\right )-1440 c^3 d^2 \sin \left (\frac {1}{2} (e+f x)\right )+2640 c^2 d^3 \sin \left (\frac {1}{2} (e+f x)\right )-1905 c d^4 \sin \left (\frac {1}{2} (e+f x)\right )+516 d^5 \sin \left (\frac {1}{2} (e+f x)\right )+720 c^3 d^2 e \sin \left (\frac {1}{2} (e+f x)\right )-1440 c^2 d^3 e \sin \left (\frac {1}{2} (e+f x)\right )+1260 c d^4 e \sin \left (\frac {1}{2} (e+f x)\right )-360 d^5 e \sin \left (\frac {1}{2} (e+f x)\right )+720 c^3 d^2 f x \sin \left (\frac {1}{2} (e+f x)\right )-1440 c^2 d^3 f x \sin \left (\frac {1}{2} (e+f x)\right )+1260 c d^4 f x \sin \left (\frac {1}{2} (e+f x)\right )-360 d^5 f x \sin \left (\frac {1}{2} (e+f x)\right )-360 c^2 d^3 \sin \left (\frac {3}{2} (e+f x)\right )+315 c d^4 \sin \left (\frac {3}{2} (e+f x)\right )-118 d^5 \sin \left (\frac {3}{2} (e+f x)\right )+240 c^3 d^2 e \sin \left (\frac {3}{2} (e+f x)\right )-480 c^2 d^3 e \sin \left (\frac {3}{2} (e+f x)\right )+420 c d^4 e \sin \left (\frac {3}{2} (e+f x)\right )-120 d^5 e \sin \left (\frac {3}{2} (e+f x)\right )+240 c^3 d^2 f x \sin \left (\frac {3}{2} (e+f x)\right )-480 c^2 d^3 f x \sin \left (\frac {3}{2} (e+f x)\right )+420 c d^4 f x \sin \left (\frac {3}{2} (e+f x)\right )-120 d^5 f x \sin \left (\frac {3}{2} (e+f x)\right )-120 c^2 d^3 \sin \left (\frac {5}{2} (e+f x)\right )+75 c d^4 \sin \left (\frac {5}{2} (e+f x)\right )-30 d^5 \sin \left (\frac {5}{2} (e+f x)\right )+15 c d^4 \sin \left (\frac {7}{2} (e+f x)\right )-3 d^5 \sin \left (\frac {7}{2} (e+f x)\right )+d^5 \sin \left (\frac {9}{2} (e+f x)\right )\right )}{432 f (1+\sin (e+f x))^2} \]

[In]

Integrate[(c + d*Sin[e + f*x])^5/(3 + 3*Sin[e + f*x])^2,x]

[Out]

((Cos[(e + f*x)/2] + Sin[(e + f*x)/2])*(3*d*(80*c^4 + 80*c^3*d*(-4 + 3*e + 3*f*x) - 80*c^2*d^2*(-5 + 6*e + 6*f
*x) + 35*c*d^3*(-7 + 12*e + 12*f*x) - 4*d^4*(-13 + 30*e + 30*f*x))*Cos[(e + f*x)/2] - (16*c^5 + 160*c^4*d + 80
*c^3*d^2*(-10 + 3*e + 3*f*x) - 40*c^2*d^3*(-41 + 12*e + 12*f*x) - 6*d^5*(-57 + 20*e + 20*f*x) + 5*c*d^4*(-239
+ 84*e + 84*f*x))*Cos[(3*(e + f*x))/2] + 120*c^2*d^3*Cos[(5*(e + f*x))/2] - 75*c*d^4*Cos[(5*(e + f*x))/2] + 30
*d^5*Cos[(5*(e + f*x))/2] + 15*c*d^4*Cos[(7*(e + f*x))/2] - 3*d^5*Cos[(7*(e + f*x))/2] - d^5*Cos[(9*(e + f*x))
/2] + 48*c^5*Sin[(e + f*x)/2] + 240*c^4*d*Sin[(e + f*x)/2] - 1440*c^3*d^2*Sin[(e + f*x)/2] + 2640*c^2*d^3*Sin[
(e + f*x)/2] - 1905*c*d^4*Sin[(e + f*x)/2] + 516*d^5*Sin[(e + f*x)/2] + 720*c^3*d^2*e*Sin[(e + f*x)/2] - 1440*
c^2*d^3*e*Sin[(e + f*x)/2] + 1260*c*d^4*e*Sin[(e + f*x)/2] - 360*d^5*e*Sin[(e + f*x)/2] + 720*c^3*d^2*f*x*Sin[
(e + f*x)/2] - 1440*c^2*d^3*f*x*Sin[(e + f*x)/2] + 1260*c*d^4*f*x*Sin[(e + f*x)/2] - 360*d^5*f*x*Sin[(e + f*x)
/2] - 360*c^2*d^3*Sin[(3*(e + f*x))/2] + 315*c*d^4*Sin[(3*(e + f*x))/2] - 118*d^5*Sin[(3*(e + f*x))/2] + 240*c
^3*d^2*e*Sin[(3*(e + f*x))/2] - 480*c^2*d^3*e*Sin[(3*(e + f*x))/2] + 420*c*d^4*e*Sin[(3*(e + f*x))/2] - 120*d^
5*e*Sin[(3*(e + f*x))/2] + 240*c^3*d^2*f*x*Sin[(3*(e + f*x))/2] - 480*c^2*d^3*f*x*Sin[(3*(e + f*x))/2] + 420*c
*d^4*f*x*Sin[(3*(e + f*x))/2] - 120*d^5*f*x*Sin[(3*(e + f*x))/2] - 120*c^2*d^3*Sin[(5*(e + f*x))/2] + 75*c*d^4
*Sin[(5*(e + f*x))/2] - 30*d^5*Sin[(5*(e + f*x))/2] + 15*c*d^4*Sin[(7*(e + f*x))/2] - 3*d^5*Sin[(7*(e + f*x))/
2] + d^5*Sin[(9*(e + f*x))/2]))/(432*f*(1 + Sin[e + f*x])^2)

Maple [A] (verified)

Time = 1.56 (sec) , antiderivative size = 342, normalized size of antiderivative = 1.40

method result size
derivativedivides \(\frac {2 d^{2} \left (\frac {\left (\frac {5}{2} c \,d^{2}-d^{3}\right ) \left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )+\left (-10 c^{2} d +10 c \,d^{2}-3 d^{3}\right ) \left (\tan ^{4}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )+\left (-20 c^{2} d +20 c \,d^{2}-8 d^{3}\right ) \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )+\left (-\frac {5}{2} c \,d^{2}+d^{3}\right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )-10 c^{2} d +10 c \,d^{2}-\frac {11 d^{3}}{3}}{\left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )^{3}}+\frac {5 \left (4 c^{3}-8 c^{2} d +7 c \,d^{2}-2 d^{3}\right ) \arctan \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2}\right )-\frac {2 \left (c^{5}-10 c^{3} d^{2}+20 c^{2} d^{3}-15 c \,d^{4}+4 d^{5}\right )}{\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1}-\frac {-2 c^{5}+10 c^{4} d -20 c^{3} d^{2}+20 c^{2} d^{3}-10 c \,d^{4}+2 d^{5}}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{2}}-\frac {2 \left (2 c^{5}-10 c^{4} d +20 c^{3} d^{2}-20 c^{2} d^{3}+10 c \,d^{4}-2 d^{5}\right )}{3 \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{3}}}{a^{2} f}\) \(342\)
default \(\frac {2 d^{2} \left (\frac {\left (\frac {5}{2} c \,d^{2}-d^{3}\right ) \left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )+\left (-10 c^{2} d +10 c \,d^{2}-3 d^{3}\right ) \left (\tan ^{4}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )+\left (-20 c^{2} d +20 c \,d^{2}-8 d^{3}\right ) \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )+\left (-\frac {5}{2} c \,d^{2}+d^{3}\right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )-10 c^{2} d +10 c \,d^{2}-\frac {11 d^{3}}{3}}{\left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )^{3}}+\frac {5 \left (4 c^{3}-8 c^{2} d +7 c \,d^{2}-2 d^{3}\right ) \arctan \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2}\right )-\frac {2 \left (c^{5}-10 c^{3} d^{2}+20 c^{2} d^{3}-15 c \,d^{4}+4 d^{5}\right )}{\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1}-\frac {-2 c^{5}+10 c^{4} d -20 c^{3} d^{2}+20 c^{2} d^{3}-10 c \,d^{4}+2 d^{5}}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{2}}-\frac {2 \left (2 c^{5}-10 c^{4} d +20 c^{3} d^{2}-20 c^{2} d^{3}+10 c \,d^{4}-2 d^{5}\right )}{3 \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{3}}}{a^{2} f}\) \(342\)
parallelrisch \(\frac {\left (\left (-360 f x -756\right ) d^{5}+\left (1260 f x +2505\right ) c \,d^{4}+\left (-1440 f x -3120\right ) c^{2} d^{3}+720 \left (f x +\frac {5}{3}\right ) c^{3} d^{2}-120 c^{4} d -72 c^{5}\right ) \cos \left (\frac {f x}{2}+\frac {e}{2}\right )+\left (\left (120 f x -38\right ) d^{5}+\left (-420 f x +115\right ) c \,d^{4}+\left (480 f x -200\right ) c^{2} d^{3}+\left (-240 f x +80\right ) c^{3} d^{2}-40 c^{4} d +8 c^{5}\right ) \cos \left (\frac {3 f x}{2}+\frac {3 e}{2}\right )+\left (\left (-360 f x -396\right ) d^{5}+\left (1260 f x +1335\right ) c \,d^{4}-1440 \left (f x +\frac {7}{6}\right ) c^{2} d^{3}+720 c^{3} \left (f x +1\right ) d^{2}-120 c^{4} d -24 c^{5}\right ) \sin \left (\frac {f x}{2}+\frac {e}{2}\right )+\left (\left (-120 f x -422\right ) d^{5}+\left (420 f x +1395\right ) c \,d^{4}+\left (-480 f x -1800\right ) c^{2} d^{3}+240 c^{3} \left (f x +3\right ) d^{2}-120 c^{4} d -24 c^{5}\right ) \sin \left (\frac {3 f x}{2}+\frac {3 e}{2}\right )+15 d^{3} \left (\left (8 c^{2}-5 c d +2 d^{2}\right ) \cos \left (\frac {5 f x}{2}+\frac {5 e}{2}\right )+\left (-8 c^{2}+5 c d -2 d^{2}\right ) \sin \left (\frac {5 f x}{2}+\frac {5 e}{2}\right )+\left (\left (c -\frac {d}{5}\right ) \cos \left (\frac {7 f x}{2}+\frac {7 e}{2}\right )+\left (c -\frac {d}{5}\right ) \sin \left (\frac {7 f x}{2}+\frac {7 e}{2}\right )-\frac {d \left (\cos \left (\frac {9 f x}{2}+\frac {9 e}{2}\right )-\sin \left (\frac {9 f x}{2}+\frac {9 e}{2}\right )\right )}{15}\right ) d \right )}{24 f \,a^{2} \left (3 \cos \left (\frac {f x}{2}+\frac {e}{2}\right )-\cos \left (\frac {3 f x}{2}+\frac {3 e}{2}\right )+\sin \left (\frac {3 f x}{2}+\frac {3 e}{2}\right )+3 \sin \left (\frac {f x}{2}+\frac {e}{2}\right )\right )}\) \(444\)
risch \(\frac {10 d^{2} x \,c^{3}}{a^{2}}-\frac {20 d^{3} x \,c^{2}}{a^{2}}+\frac {35 d^{4} x c}{2 a^{2}}-\frac {5 d^{5} x}{a^{2}}-\frac {5 i d^{4} {\mathrm e}^{-2 i \left (f x +e \right )} c}{8 a^{2} f}+\frac {i d^{5} {\mathrm e}^{-2 i \left (f x +e \right )}}{4 a^{2} f}-\frac {5 d^{3} {\mathrm e}^{i \left (f x +e \right )} c^{2}}{a^{2} f}+\frac {5 d^{4} {\mathrm e}^{i \left (f x +e \right )} c}{a^{2} f}-\frac {15 d^{5} {\mathrm e}^{i \left (f x +e \right )}}{8 a^{2} f}-\frac {5 d^{3} {\mathrm e}^{-i \left (f x +e \right )} c^{2}}{a^{2} f}+\frac {5 d^{4} {\mathrm e}^{-i \left (f x +e \right )} c}{a^{2} f}-\frac {15 d^{5} {\mathrm e}^{-i \left (f x +e \right )}}{8 a^{2} f}-\frac {i d^{5} {\mathrm e}^{2 i \left (f x +e \right )}}{4 a^{2} f}+\frac {5 i d^{4} {\mathrm e}^{2 i \left (f x +e \right )} c}{8 a^{2} f}-\frac {2 i \left (-55 i c \,d^{4}+60 i {\mathrm e}^{2 i \left (f x +e \right )} c \,d^{4}-15 i c^{4} d \,{\mathrm e}^{2 i \left (f x +e \right )}+60 i c^{3} d^{2} {\mathrm e}^{2 i \left (f x +e \right )}+14 i d^{5}+80 i d^{3} c^{2}+i c^{5}-50 i c^{3} d^{2}-15 i d^{5} {\mathrm e}^{2 i \left (f x +e \right )}-90 i c^{2} d^{3} {\mathrm e}^{2 i \left (f x +e \right )}+10 i c^{4} d +3 c^{5} {\mathrm e}^{i \left (f x +e \right )}+15 c^{4} d \,{\mathrm e}^{i \left (f x +e \right )}-90 c^{3} d^{2} {\mathrm e}^{i \left (f x +e \right )}+150 c^{2} d^{3} {\mathrm e}^{i \left (f x +e \right )}-105 c \,d^{4} {\mathrm e}^{i \left (f x +e \right )}+27 d^{5} {\mathrm e}^{i \left (f x +e \right )}\right )}{3 f \,a^{2} \left ({\mathrm e}^{i \left (f x +e \right )}+i\right )^{3}}+\frac {d^{5} \cos \left (3 f x +3 e \right )}{12 a^{2} f}\) \(522\)
norman \(\text {Expression too large to display}\) \(1355\)

[In]

int((c+d*sin(f*x+e))^5/(a+a*sin(f*x+e))^2,x,method=_RETURNVERBOSE)

[Out]

2/f/a^2*(d^2*(((5/2*c*d^2-d^3)*tan(1/2*f*x+1/2*e)^5+(-10*c^2*d+10*c*d^2-3*d^3)*tan(1/2*f*x+1/2*e)^4+(-20*c^2*d
+20*c*d^2-8*d^3)*tan(1/2*f*x+1/2*e)^2+(-5/2*c*d^2+d^3)*tan(1/2*f*x+1/2*e)-10*c^2*d+10*c*d^2-11/3*d^3)/(1+tan(1
/2*f*x+1/2*e)^2)^3+5/2*(4*c^3-8*c^2*d+7*c*d^2-2*d^3)*arctan(tan(1/2*f*x+1/2*e)))-(c^5-10*c^3*d^2+20*c^2*d^3-15
*c*d^4+4*d^5)/(tan(1/2*f*x+1/2*e)+1)-1/2*(-2*c^5+10*c^4*d-20*c^3*d^2+20*c^2*d^3-10*c*d^4+2*d^5)/(tan(1/2*f*x+1
/2*e)+1)^2-1/3*(2*c^5-10*c^4*d+20*c^3*d^2-20*c^2*d^3+10*c*d^4-2*d^5)/(tan(1/2*f*x+1/2*e)+1)^3)

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 578 vs. \(2 (248) = 496\).

Time = 0.29 (sec) , antiderivative size = 578, normalized size of antiderivative = 2.36 \[ \int \frac {(c+d \sin (e+f x))^5}{(3+3 \sin (e+f x))^2} \, dx=\frac {2 \, d^{5} \cos \left (f x + e\right )^{5} + 2 \, c^{5} - 10 \, c^{4} d + 20 \, c^{3} d^{2} - 20 \, c^{2} d^{3} + 10 \, c d^{4} - 2 \, d^{5} - {\left (15 \, c d^{4} - 4 \, d^{5}\right )} \cos \left (f x + e\right )^{4} - 2 \, {\left (30 \, c^{2} d^{3} - 15 \, c d^{4} + 8 \, d^{5}\right )} \cos \left (f x + e\right )^{3} - 30 \, {\left (4 \, c^{3} d^{2} - 8 \, c^{2} d^{3} + 7 \, c d^{4} - 2 \, d^{5}\right )} f x + {\left (2 \, c^{5} + 20 \, c^{4} d - 100 \, c^{3} d^{2} + 220 \, c^{2} d^{3} - 155 \, c d^{4} + 46 \, d^{5} + 15 \, {\left (4 \, c^{3} d^{2} - 8 \, c^{2} d^{3} + 7 \, c d^{4} - 2 \, d^{5}\right )} f x\right )} \cos \left (f x + e\right )^{2} + {\left (4 \, c^{5} + 10 \, c^{4} d - 80 \, c^{3} d^{2} + 260 \, c^{2} d^{3} - 190 \, c d^{4} + 62 \, d^{5} - 15 \, {\left (4 \, c^{3} d^{2} - 8 \, c^{2} d^{3} + 7 \, c d^{4} - 2 \, d^{5}\right )} f x\right )} \cos \left (f x + e\right ) - {\left (2 \, d^{5} \cos \left (f x + e\right )^{4} + 2 \, c^{5} - 10 \, c^{4} d + 20 \, c^{3} d^{2} - 20 \, c^{2} d^{3} + 10 \, c d^{4} - 2 \, d^{5} + {\left (15 \, c d^{4} - 2 \, d^{5}\right )} \cos \left (f x + e\right )^{3} + 30 \, {\left (4 \, c^{3} d^{2} - 8 \, c^{2} d^{3} + 7 \, c d^{4} - 2 \, d^{5}\right )} f x - 3 \, {\left (20 \, c^{2} d^{3} - 15 \, c d^{4} + 6 \, d^{5}\right )} \cos \left (f x + e\right )^{2} - {\left (2 \, c^{5} + 20 \, c^{4} d - 100 \, c^{3} d^{2} + 280 \, c^{2} d^{3} - 200 \, c d^{4} + 64 \, d^{5} - 15 \, {\left (4 \, c^{3} d^{2} - 8 \, c^{2} d^{3} + 7 \, c d^{4} - 2 \, d^{5}\right )} f x\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )}{6 \, {\left (a^{2} f \cos \left (f x + e\right )^{2} - a^{2} f \cos \left (f x + e\right ) - 2 \, a^{2} f - {\left (a^{2} f \cos \left (f x + e\right ) + 2 \, a^{2} f\right )} \sin \left (f x + e\right )\right )}} \]

[In]

integrate((c+d*sin(f*x+e))^5/(a+a*sin(f*x+e))^2,x, algorithm="fricas")

[Out]

1/6*(2*d^5*cos(f*x + e)^5 + 2*c^5 - 10*c^4*d + 20*c^3*d^2 - 20*c^2*d^3 + 10*c*d^4 - 2*d^5 - (15*c*d^4 - 4*d^5)
*cos(f*x + e)^4 - 2*(30*c^2*d^3 - 15*c*d^4 + 8*d^5)*cos(f*x + e)^3 - 30*(4*c^3*d^2 - 8*c^2*d^3 + 7*c*d^4 - 2*d
^5)*f*x + (2*c^5 + 20*c^4*d - 100*c^3*d^2 + 220*c^2*d^3 - 155*c*d^4 + 46*d^5 + 15*(4*c^3*d^2 - 8*c^2*d^3 + 7*c
*d^4 - 2*d^5)*f*x)*cos(f*x + e)^2 + (4*c^5 + 10*c^4*d - 80*c^3*d^2 + 260*c^2*d^3 - 190*c*d^4 + 62*d^5 - 15*(4*
c^3*d^2 - 8*c^2*d^3 + 7*c*d^4 - 2*d^5)*f*x)*cos(f*x + e) - (2*d^5*cos(f*x + e)^4 + 2*c^5 - 10*c^4*d + 20*c^3*d
^2 - 20*c^2*d^3 + 10*c*d^4 - 2*d^5 + (15*c*d^4 - 2*d^5)*cos(f*x + e)^3 + 30*(4*c^3*d^2 - 8*c^2*d^3 + 7*c*d^4 -
 2*d^5)*f*x - 3*(20*c^2*d^3 - 15*c*d^4 + 6*d^5)*cos(f*x + e)^2 - (2*c^5 + 20*c^4*d - 100*c^3*d^2 + 280*c^2*d^3
 - 200*c*d^4 + 64*d^5 - 15*(4*c^3*d^2 - 8*c^2*d^3 + 7*c*d^4 - 2*d^5)*f*x)*cos(f*x + e))*sin(f*x + e))/(a^2*f*c
os(f*x + e)^2 - a^2*f*cos(f*x + e) - 2*a^2*f - (a^2*f*cos(f*x + e) + 2*a^2*f)*sin(f*x + e))

Sympy [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 17899 vs. \(2 (250) = 500\).

Time = 13.62 (sec) , antiderivative size = 17899, normalized size of antiderivative = 73.06 \[ \int \frac {(c+d \sin (e+f x))^5}{(3+3 \sin (e+f x))^2} \, dx=\text {Too large to display} \]

[In]

integrate((c+d*sin(f*x+e))**5/(a+a*sin(f*x+e))**2,x)

[Out]

Piecewise((-12*c**5*tan(e/2 + f*x/2)**8/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**
2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 +
f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**
2*f) - 12*c**5*tan(e/2 + f*x/2)**7/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*t
an(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2
)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f)
- 44*c**5*tan(e/2 + f*x/2)**6/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/
2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4
+ 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 36*
c**5*tan(e/2 + f*x/2)**5/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f
*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*
a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 60*c**5*
tan(e/2 + f*x/2)**4/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)
**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*
f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 36*c**5*tan(e
/2 + f*x/2)**3/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 +
 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan
(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 36*c**5*tan(e/2 +
f*x/2)**2/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a
**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2
+ f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 12*c**5*tan(e/2 + f*x/2
)/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*ta
n(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)
**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 8*c**5/(6*a**2*f*tan(e/2 + f*x/
2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**
2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 +
f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 60*c**4*d*tan(e/2 + f*x/2)**7/(6*a**2*f*tan(e/2 + f*x/2)*
*9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f
*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x
/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 20*c**4*d*tan(e/2 + f*x/2)**6/(6*a**2*f*tan(e/2 + f*x/2)**9
+ 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*ta
n(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)
**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 180*c**4*d*tan(e/2 + f*x/2)**5/(6*a**2*f*tan(e/2 + f*x/2)**9 +
18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(
e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**
2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 60*c**4*d*tan(e/2 + f*x/2)**4/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*
a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2
 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 +
 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 180*c**4*d*tan(e/2 + f*x/2)**3/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a*
*2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 +
 f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 1
8*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 60*c**4*d*tan(e/2 + f*x/2)**2/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*
f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*
x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a
**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 60*c**4*d*tan(e/2 + f*x/2)/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(
e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**
5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*
tan(e/2 + f*x/2) + 6*a**2*f) - 20*c**4*d/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a*
*2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 +
 f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a*
*2*f) + 60*c**3*d**2*f*x*tan(e/2 + f*x/2)**9/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 3
6*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e
/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) +
6*a**2*f) + 180*c**3*d**2*f*x*tan(e/2 + f*x/2)**8/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**
8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*
tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/
2) + 6*a**2*f) + 360*c**3*d**2*f*x*tan(e/2 + f*x/2)**7/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x
/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a*
*2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 +
 f*x/2) + 6*a**2*f) + 600*c**3*d**2*f*x*tan(e/2 + f*x/2)**6/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2
+ f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 +
72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(
e/2 + f*x/2) + 6*a**2*f) + 720*c**3*d**2*f*x*tan(e/2 + f*x/2)**5/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan
(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)*
*5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f
*tan(e/2 + f*x/2) + 6*a**2*f) + 720*c**3*d**2*f*x*tan(e/2 + f*x/2)**4/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*
f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*
x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a
**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 600*c**3*d**2*f*x*tan(e/2 + f*x/2)**3/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*
a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2
 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 +
 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 360*c**3*d**2*f*x*tan(e/2 + f*x/2)**2/(6*a**2*f*tan(e/2 + f*x/2)**9
+ 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*ta
n(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)
**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 180*c**3*d**2*f*x*tan(e/2 + f*x/2)/(6*a**2*f*tan(e/2 + f*x/2)**
9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*
tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/
2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 60*c**3*d**2*f*x/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*ta
n(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)
**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*
f*tan(e/2 + f*x/2) + 6*a**2*f) + 120*c**3*d**2*tan(e/2 + f*x/2)**8/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*t
an(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2
)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2
*f*tan(e/2 + f*x/2) + 6*a**2*f) + 360*c**3*d**2*tan(e/2 + f*x/2)**7/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*
tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/
2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**
2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 520*c**3*d**2*tan(e/2 + f*x/2)**6/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f
*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x
/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a*
*2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 1080*c**3*d**2*tan(e/2 + f*x/2)**5/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2
*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f
*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*
a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 840*c**3*d**2*tan(e/2 + f*x/2)**4/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**
2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 +
f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18
*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 1080*c**3*d**2*tan(e/2 + f*x/2)**3/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a
**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2
+ f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 +
18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 600*c**3*d**2*tan(e/2 + f*x/2)**2/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*
a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2
 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 +
 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 360*c**3*d**2*tan(e/2 + f*x/2)/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a*
*2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 +
 f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 1
8*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 160*c**3*d**2/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/
2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**
2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 +
f*x/2) + 6*a**2*f) - 120*c**2*d**3*f*x*tan(e/2 + f*x/2)**9/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 +
 f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 7
2*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e
/2 + f*x/2) + 6*a**2*f) - 360*c**2*d**3*f*x*tan(e/2 + f*x/2)**8/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(
e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**
5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*
tan(e/2 + f*x/2) + 6*a**2*f) - 720*c**2*d**3*f*x*tan(e/2 + f*x/2)**7/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f
*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x
/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a*
*2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 1200*c**2*d**3*f*x*tan(e/2 + f*x/2)**6/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*
a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2
 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 +
 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 1440*c**2*d**3*f*x*tan(e/2 + f*x/2)**5/(6*a**2*f*tan(e/2 + f*x/2)**9
 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*t
an(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2
)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 1440*c**2*d**3*f*x*tan(e/2 + f*x/2)**4/(6*a**2*f*tan(e/2 + f*x
/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a*
*2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 +
 f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 1200*c**2*d**3*f*x*tan(e/2 + f*x/2)**3/(6*a**2*f*tan(e/2
 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 +
 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan
(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 720*c**2*d**3*f*x*tan(e/2 + f*x/2)**2/(6*a**2*f*ta
n(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)
**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*
f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 360*c**2*d**3*f*x*tan(e/2 + f*x/2)/(6*a**2*f*
tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/
2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**
2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 120*c**2*d**3*f*x/(6*a**2*f*tan(e/2 + f*x/2
)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2
*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f
*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 240*c**2*d**3*tan(e/2 + f*x/2)**8/(6*a**2*f*tan(e/2 + f*x/
2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**
2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 +
f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 720*c**2*d**3*tan(e/2 + f*x/2)**7/(6*a**2*f*tan(e/2 + f*x
/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a*
*2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 +
 f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 1360*c**2*d**3*tan(e/2 + f*x/2)**6/(6*a**2*f*tan(e/2 + f
*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*
a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2
 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 2400*c**2*d**3*tan(e/2 + f*x/2)**5/(6*a**2*f*tan(e/2 +
 f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 7
2*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e
/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 2400*c**2*d**3*tan(e/2 + f*x/2)**4/(6*a**2*f*tan(e/2
 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 +
 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan
(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 2640*c**2*d**3*tan(e/2 + f*x/2)**3/(6*a**2*f*tan(e
/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6
 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*t
an(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 1680*c**2*d**3*tan(e/2 + f*x/2)**2/(6*a**2*f*tan
(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)*
*6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f
*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 960*c**2*d**3*tan(e/2 + f*x/2)/(6*a**2*f*tan(e
/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6
 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*t
an(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 400*c**2*d**3/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18
*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/
2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2
+ 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 105*c*d**4*f*x*tan(e/2 + f*x/2)**9/(6*a**2*f*tan(e/2 + f*x/2)**9 +
18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(
e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**
2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 315*c*d**4*f*x*tan(e/2 + f*x/2)**8/(6*a**2*f*tan(e/2 + f*x/2)**9
+ 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*ta
n(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)
**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 630*c*d**4*f*x*tan(e/2 + f*x/2)**7/(6*a**2*f*tan(e/2 + f*x/2)**
9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*
tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/
2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 1050*c*d**4*f*x*tan(e/2 + f*x/2)**6/(6*a**2*f*tan(e/2 + f*x/2
)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2
*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f
*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 1260*c*d**4*f*x*tan(e/2 + f*x/2)**5/(6*a**2*f*tan(e/2 + f*
x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a
**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2
+ f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 1260*c*d**4*f*x*tan(e/2 + f*x/2)**4/(6*a**2*f*tan(e/2 +
 f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 7
2*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e
/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 1050*c*d**4*f*x*tan(e/2 + f*x/2)**3/(6*a**2*f*tan(e/
2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6
+ 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*ta
n(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 630*c*d**4*f*x*tan(e/2 + f*x/2)**2/(6*a**2*f*tan(
e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**
6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*
tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 315*c*d**4*f*x*tan(e/2 + f*x/2)/(6*a**2*f*tan(e
/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6
 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*t
an(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 105*c*d**4*f*x/(6*a**2*f*tan(e/2 + f*x/2)**9 + 1
8*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e
/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2
 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 210*c*d**4*tan(e/2 + f*x/2)**8/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*
a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2
 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 +
 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 630*c*d**4*tan(e/2 + f*x/2)**7/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a*
*2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 +
 f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 1
8*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 1190*c*d**4*tan(e/2 + f*x/2)**6/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**
2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 +
f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18
*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 1890*c*d**4*tan(e/2 + f*x/2)**5/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2
*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f
*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*
a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 1950*c*d**4*tan(e/2 + f*x/2)**4/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*
f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*
x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a
**2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 2010*c*d**4*tan(e/2 + f*x/2)**3/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f
*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x
/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a*
*2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 1290*c*d**4*tan(e/2 + f*x/2)**2/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*
tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/
2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**
2*f*tan(e/2 + f*x/2) + 6*a**2*f) + 750*c*d**4*tan(e/2 + f*x/2)/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e
/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5
 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*t
an(e/2 + f*x/2) + 6*a**2*f) + 320*c*d**4/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a*
*2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 +
 f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a*
*2*f) - 30*d**5*f*x*tan(e/2 + f*x/2)**9/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**
2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 +
f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**
2*f) - 90*d**5*f*x*tan(e/2 + f*x/2)**8/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2
*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f
*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2
*f) - 180*d**5*f*x*tan(e/2 + f*x/2)**7/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2
*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f
*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2
*f) - 300*d**5*f*x*tan(e/2 + f*x/2)**6/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2
*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f
*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2
*f) - 360*d**5*f*x*tan(e/2 + f*x/2)**5/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2
*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f
*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2
*f) - 360*d**5*f*x*tan(e/2 + f*x/2)**4/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2
*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f
*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2
*f) - 300*d**5*f*x*tan(e/2 + f*x/2)**3/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2
*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f
*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2
*f) - 180*d**5*f*x*tan(e/2 + f*x/2)**2/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2
*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f
*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2
*f) - 90*d**5*f*x*tan(e/2 + f*x/2)/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*t
an(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2
)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f)
- 30*d**5*f*x/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 +
60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(
e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 60*d**5*tan(e/2 + f
*x/2)**8/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a*
*2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 +
 f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 180*d**5*tan(e/2 + f*x/2
)**7/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f
*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x
/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 340*d**5*tan(e/2 + f*x/2)**6
/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan
(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)*
*3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 540*d**5*tan(e/2 + f*x/2)**5/(6*
a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2
 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 +
 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 612*d**5*tan(e/2 + f*x/2)**4/(6*a**2
*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f
*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*
a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 620*d**5*tan(e/2 + f*x/2)**3/(6*a**2*f*t
an(e/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2
)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2
*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 396*d**5*tan(e/2 + f*x/2)**2/(6*a**2*f*tan(e
/2 + f*x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6
 + 72*a**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*t
an(e/2 + f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 228*d**5*tan(e/2 + f*x/2)/(6*a**2*f*tan(e/2 + f*
x/2)**9 + 18*a**2*f*tan(e/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a
**2*f*tan(e/2 + f*x/2)**5 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2
+ f*x/2)**2 + 18*a**2*f*tan(e/2 + f*x/2) + 6*a**2*f) - 96*d**5/(6*a**2*f*tan(e/2 + f*x/2)**9 + 18*a**2*f*tan(e
/2 + f*x/2)**8 + 36*a**2*f*tan(e/2 + f*x/2)**7 + 60*a**2*f*tan(e/2 + f*x/2)**6 + 72*a**2*f*tan(e/2 + f*x/2)**5
 + 72*a**2*f*tan(e/2 + f*x/2)**4 + 60*a**2*f*tan(e/2 + f*x/2)**3 + 36*a**2*f*tan(e/2 + f*x/2)**2 + 18*a**2*f*t
an(e/2 + f*x/2) + 6*a**2*f), Ne(f, 0)), (x*(c + d*sin(e))**5/(a*sin(e) + a)**2, True))

Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 1312 vs. \(2 (248) = 496\).

Time = 0.31 (sec) , antiderivative size = 1312, normalized size of antiderivative = 5.36 \[ \int \frac {(c+d \sin (e+f x))^5}{(3+3 \sin (e+f x))^2} \, dx=\text {Too large to display} \]

[In]

integrate((c+d*sin(f*x+e))^5/(a+a*sin(f*x+e))^2,x, algorithm="maxima")

[Out]

1/3*(5*c*d^4*((75*sin(f*x + e)/(cos(f*x + e) + 1) + 97*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 + 126*sin(f*x + e)^
3/(cos(f*x + e) + 1)^3 + 98*sin(f*x + e)^4/(cos(f*x + e) + 1)^4 + 63*sin(f*x + e)^5/(cos(f*x + e) + 1)^5 + 21*
sin(f*x + e)^6/(cos(f*x + e) + 1)^6 + 32)/(a^2 + 3*a^2*sin(f*x + e)/(cos(f*x + e) + 1) + 5*a^2*sin(f*x + e)^2/
(cos(f*x + e) + 1)^2 + 7*a^2*sin(f*x + e)^3/(cos(f*x + e) + 1)^3 + 7*a^2*sin(f*x + e)^4/(cos(f*x + e) + 1)^4 +
 5*a^2*sin(f*x + e)^5/(cos(f*x + e) + 1)^5 + 3*a^2*sin(f*x + e)^6/(cos(f*x + e) + 1)^6 + a^2*sin(f*x + e)^7/(c
os(f*x + e) + 1)^7) + 21*arctan(sin(f*x + e)/(cos(f*x + e) + 1))/a^2) - 2*d^5*((57*sin(f*x + e)/(cos(f*x + e)
+ 1) + 99*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 + 155*sin(f*x + e)^3/(cos(f*x + e) + 1)^3 + 153*sin(f*x + e)^4/(
cos(f*x + e) + 1)^4 + 135*sin(f*x + e)^5/(cos(f*x + e) + 1)^5 + 85*sin(f*x + e)^6/(cos(f*x + e) + 1)^6 + 45*si
n(f*x + e)^7/(cos(f*x + e) + 1)^7 + 15*sin(f*x + e)^8/(cos(f*x + e) + 1)^8 + 24)/(a^2 + 3*a^2*sin(f*x + e)/(co
s(f*x + e) + 1) + 6*a^2*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 + 10*a^2*sin(f*x + e)^3/(cos(f*x + e) + 1)^3 + 12*
a^2*sin(f*x + e)^4/(cos(f*x + e) + 1)^4 + 12*a^2*sin(f*x + e)^5/(cos(f*x + e) + 1)^5 + 10*a^2*sin(f*x + e)^6/(
cos(f*x + e) + 1)^6 + 6*a^2*sin(f*x + e)^7/(cos(f*x + e) + 1)^7 + 3*a^2*sin(f*x + e)^8/(cos(f*x + e) + 1)^8 +
a^2*sin(f*x + e)^9/(cos(f*x + e) + 1)^9) + 15*arctan(sin(f*x + e)/(cos(f*x + e) + 1))/a^2) - 40*c^2*d^3*((12*s
in(f*x + e)/(cos(f*x + e) + 1) + 11*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 + 9*sin(f*x + e)^3/(cos(f*x + e) + 1)^
3 + 3*sin(f*x + e)^4/(cos(f*x + e) + 1)^4 + 5)/(a^2 + 3*a^2*sin(f*x + e)/(cos(f*x + e) + 1) + 4*a^2*sin(f*x +
e)^2/(cos(f*x + e) + 1)^2 + 4*a^2*sin(f*x + e)^3/(cos(f*x + e) + 1)^3 + 3*a^2*sin(f*x + e)^4/(cos(f*x + e) + 1
)^4 + a^2*sin(f*x + e)^5/(cos(f*x + e) + 1)^5) + 3*arctan(sin(f*x + e)/(cos(f*x + e) + 1))/a^2) + 20*c^3*d^2*(
(9*sin(f*x + e)/(cos(f*x + e) + 1) + 3*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 + 4)/(a^2 + 3*a^2*sin(f*x + e)/(cos
(f*x + e) + 1) + 3*a^2*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 + a^2*sin(f*x + e)^3/(cos(f*x + e) + 1)^3) + 3*arct
an(sin(f*x + e)/(cos(f*x + e) + 1))/a^2) - 2*c^5*(3*sin(f*x + e)/(cos(f*x + e) + 1) + 3*sin(f*x + e)^2/(cos(f*
x + e) + 1)^2 + 2)/(a^2 + 3*a^2*sin(f*x + e)/(cos(f*x + e) + 1) + 3*a^2*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 +
a^2*sin(f*x + e)^3/(cos(f*x + e) + 1)^3) - 10*c^4*d*(3*sin(f*x + e)/(cos(f*x + e) + 1) + 1)/(a^2 + 3*a^2*sin(f
*x + e)/(cos(f*x + e) + 1) + 3*a^2*sin(f*x + e)^2/(cos(f*x + e) + 1)^2 + a^2*sin(f*x + e)^3/(cos(f*x + e) + 1)
^3))/f

Giac [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 926 vs. \(2 (248) = 496\).

Time = 0.46 (sec) , antiderivative size = 926, normalized size of antiderivative = 3.78 \[ \int \frac {(c+d \sin (e+f x))^5}{(3+3 \sin (e+f x))^2} \, dx=\text {Too large to display} \]

[In]

integrate((c+d*sin(f*x+e))^5/(a+a*sin(f*x+e))^2,x, algorithm="giac")

[Out]

1/6*(15*(4*c^3*d^2 - 8*c^2*d^3 + 7*c*d^4 - 2*d^5)*(f*x + e)/a^2 - 2*(6*c^5*tan(1/2*f*x + 1/2*e)^8 - 60*c^3*d^2
*tan(1/2*f*x + 1/2*e)^8 + 120*c^2*d^3*tan(1/2*f*x + 1/2*e)^8 - 105*c*d^4*tan(1/2*f*x + 1/2*e)^8 + 30*d^5*tan(1
/2*f*x + 1/2*e)^8 + 6*c^5*tan(1/2*f*x + 1/2*e)^7 + 30*c^4*d*tan(1/2*f*x + 1/2*e)^7 - 180*c^3*d^2*tan(1/2*f*x +
 1/2*e)^7 + 360*c^2*d^3*tan(1/2*f*x + 1/2*e)^7 - 315*c*d^4*tan(1/2*f*x + 1/2*e)^7 + 90*d^5*tan(1/2*f*x + 1/2*e
)^7 + 22*c^5*tan(1/2*f*x + 1/2*e)^6 + 10*c^4*d*tan(1/2*f*x + 1/2*e)^6 - 260*c^3*d^2*tan(1/2*f*x + 1/2*e)^6 + 6
80*c^2*d^3*tan(1/2*f*x + 1/2*e)^6 - 595*c*d^4*tan(1/2*f*x + 1/2*e)^6 + 170*d^5*tan(1/2*f*x + 1/2*e)^6 + 18*c^5
*tan(1/2*f*x + 1/2*e)^5 + 90*c^4*d*tan(1/2*f*x + 1/2*e)^5 - 540*c^3*d^2*tan(1/2*f*x + 1/2*e)^5 + 1200*c^2*d^3*
tan(1/2*f*x + 1/2*e)^5 - 945*c*d^4*tan(1/2*f*x + 1/2*e)^5 + 270*d^5*tan(1/2*f*x + 1/2*e)^5 + 30*c^5*tan(1/2*f*
x + 1/2*e)^4 + 30*c^4*d*tan(1/2*f*x + 1/2*e)^4 - 420*c^3*d^2*tan(1/2*f*x + 1/2*e)^4 + 1200*c^2*d^3*tan(1/2*f*x
 + 1/2*e)^4 - 975*c*d^4*tan(1/2*f*x + 1/2*e)^4 + 306*d^5*tan(1/2*f*x + 1/2*e)^4 + 18*c^5*tan(1/2*f*x + 1/2*e)^
3 + 90*c^4*d*tan(1/2*f*x + 1/2*e)^3 - 540*c^3*d^2*tan(1/2*f*x + 1/2*e)^3 + 1320*c^2*d^3*tan(1/2*f*x + 1/2*e)^3
 - 1005*c*d^4*tan(1/2*f*x + 1/2*e)^3 + 310*d^5*tan(1/2*f*x + 1/2*e)^3 + 18*c^5*tan(1/2*f*x + 1/2*e)^2 + 30*c^4
*d*tan(1/2*f*x + 1/2*e)^2 - 300*c^3*d^2*tan(1/2*f*x + 1/2*e)^2 + 840*c^2*d^3*tan(1/2*f*x + 1/2*e)^2 - 645*c*d^
4*tan(1/2*f*x + 1/2*e)^2 + 198*d^5*tan(1/2*f*x + 1/2*e)^2 + 6*c^5*tan(1/2*f*x + 1/2*e) + 30*c^4*d*tan(1/2*f*x
+ 1/2*e) - 180*c^3*d^2*tan(1/2*f*x + 1/2*e) + 480*c^2*d^3*tan(1/2*f*x + 1/2*e) - 375*c*d^4*tan(1/2*f*x + 1/2*e
) + 114*d^5*tan(1/2*f*x + 1/2*e) + 4*c^5 + 10*c^4*d - 80*c^3*d^2 + 200*c^2*d^3 - 160*c*d^4 + 48*d^5)/((tan(1/2
*f*x + 1/2*e)^3 + tan(1/2*f*x + 1/2*e)^2 + tan(1/2*f*x + 1/2*e) + 1)^3*a^2))/f

Mupad [B] (verification not implemented)

Time = 9.54 (sec) , antiderivative size = 692, normalized size of antiderivative = 2.82 \[ \int \frac {(c+d \sin (e+f x))^5}{(3+3 \sin (e+f x))^2} \, dx=\frac {5\,d^2\,\mathrm {atan}\left (\frac {5\,d^2\,\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\left (2\,c-d\right )\,\left (2\,c^2-3\,c\,d+2\,d^2\right )}{20\,c^3\,d^2-40\,c^2\,d^3+35\,c\,d^4-10\,d^5}\right )\,\left (2\,c-d\right )\,\left (2\,c^2-3\,c\,d+2\,d^2\right )}{a^2\,f}-\frac {{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^7\,\left (2\,c^5+10\,c^4\,d-60\,c^3\,d^2+120\,c^2\,d^3-105\,c\,d^4+30\,d^5\right )+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2\,\left (6\,c^5+10\,c^4\,d-100\,c^3\,d^2+280\,c^2\,d^3-215\,c\,d^4+66\,d^5\right )+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4\,\left (10\,c^5+10\,c^4\,d-140\,c^3\,d^2+400\,c^2\,d^3-325\,c\,d^4+102\,d^5\right )+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^5\,\left (6\,c^5+30\,c^4\,d-180\,c^3\,d^2+400\,c^2\,d^3-315\,c\,d^4+90\,d^5\right )+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^3\,\left (6\,c^5+30\,c^4\,d-180\,c^3\,d^2+440\,c^2\,d^3-335\,c\,d^4+\frac {310\,d^5}{3}\right )+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^6\,\left (\frac {22\,c^5}{3}+\frac {10\,c^4\,d}{3}-\frac {260\,c^3\,d^2}{3}+\frac {680\,c^2\,d^3}{3}-\frac {595\,c\,d^4}{3}+\frac {170\,d^5}{3}\right )-\frac {160\,c\,d^4}{3}+\frac {10\,c^4\,d}{3}+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^8\,\left (2\,c^5-20\,c^3\,d^2+40\,c^2\,d^3-35\,c\,d^4+10\,d^5\right )+\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\left (2\,c^5+10\,c^4\,d-60\,c^3\,d^2+160\,c^2\,d^3-125\,c\,d^4+38\,d^5\right )+\frac {4\,c^5}{3}+16\,d^5+\frac {200\,c^2\,d^3}{3}-\frac {80\,c^3\,d^2}{3}}{f\,\left (a^2\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^9+3\,a^2\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^8+6\,a^2\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^7+10\,a^2\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^6+12\,a^2\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^5+12\,a^2\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4+10\,a^2\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^3+6\,a^2\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2+3\,a^2\,\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )+a^2\right )} \]

[In]

int((c + d*sin(e + f*x))^5/(a + a*sin(e + f*x))^2,x)

[Out]

(5*d^2*atan((5*d^2*tan(e/2 + (f*x)/2)*(2*c - d)*(2*c^2 - 3*c*d + 2*d^2))/(35*c*d^4 - 10*d^5 - 40*c^2*d^3 + 20*
c^3*d^2))*(2*c - d)*(2*c^2 - 3*c*d + 2*d^2))/(a^2*f) - (tan(e/2 + (f*x)/2)^7*(10*c^4*d - 105*c*d^4 + 2*c^5 + 3
0*d^5 + 120*c^2*d^3 - 60*c^3*d^2) + tan(e/2 + (f*x)/2)^2*(10*c^4*d - 215*c*d^4 + 6*c^5 + 66*d^5 + 280*c^2*d^3
- 100*c^3*d^2) + tan(e/2 + (f*x)/2)^4*(10*c^4*d - 325*c*d^4 + 10*c^5 + 102*d^5 + 400*c^2*d^3 - 140*c^3*d^2) +
tan(e/2 + (f*x)/2)^5*(30*c^4*d - 315*c*d^4 + 6*c^5 + 90*d^5 + 400*c^2*d^3 - 180*c^3*d^2) + tan(e/2 + (f*x)/2)^
3*(30*c^4*d - 335*c*d^4 + 6*c^5 + (310*d^5)/3 + 440*c^2*d^3 - 180*c^3*d^2) + tan(e/2 + (f*x)/2)^6*((10*c^4*d)/
3 - (595*c*d^4)/3 + (22*c^5)/3 + (170*d^5)/3 + (680*c^2*d^3)/3 - (260*c^3*d^2)/3) - (160*c*d^4)/3 + (10*c^4*d)
/3 + tan(e/2 + (f*x)/2)^8*(2*c^5 - 35*c*d^4 + 10*d^5 + 40*c^2*d^3 - 20*c^3*d^2) + tan(e/2 + (f*x)/2)*(10*c^4*d
 - 125*c*d^4 + 2*c^5 + 38*d^5 + 160*c^2*d^3 - 60*c^3*d^2) + (4*c^5)/3 + 16*d^5 + (200*c^2*d^3)/3 - (80*c^3*d^2
)/3)/(f*(6*a^2*tan(e/2 + (f*x)/2)^2 + 10*a^2*tan(e/2 + (f*x)/2)^3 + 12*a^2*tan(e/2 + (f*x)/2)^4 + 12*a^2*tan(e
/2 + (f*x)/2)^5 + 10*a^2*tan(e/2 + (f*x)/2)^6 + 6*a^2*tan(e/2 + (f*x)/2)^7 + 3*a^2*tan(e/2 + (f*x)/2)^8 + a^2*
tan(e/2 + (f*x)/2)^9 + a^2 + 3*a^2*tan(e/2 + (f*x)/2)))